tests: add UI test infrastructure for VM Wizard#7631
Open
sdrabb wants to merge 3 commits intoutmapp:mainfrom
Open
tests: add UI test infrastructure for VM Wizard#7631sdrabb wants to merge 3 commits intoutmapp:mainfrom
sdrabb wants to merge 3 commits intoutmapp:mainfrom
Conversation
Contributor
|
Hi please confirm that you have read https://github.com/utmapp/UTM/blob/main/CONTRIBUTING.md and have followed the guidelines. Thanks! |
Add a UTMUITests target (com.apple.product-type.bundle.ui-testing) that depends on the macOS app target and wire it into the macOS scheme so that tests can be run both from Xcode and via: xcodebuild test -scheme macOS -destination 'platform=macOS' Only the minimum required project.pbxproj entries are added: PBXBuildFile, PBXContainerItemProxy, PBXFileReference, PBXFrameworks/Resources/SourcesBuildPhase, PBXGroup, PBXNativeTarget, PBXTargetDependency, XCBuildConfiguration (Debug + Release), and XCConfigurationList. No unrelated target settings are touched. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Add a test-utm job that runs UTMUITests against the macOS scheme
on every push/PR. The job depends on build-sysroot (same as
build-utm) so it can share the cached sysroot and run in parallel
with the other build jobs.
xcodebuild test -scheme macOS -destination 'platform=macOS' \
CODE_SIGNING_ALLOWED=NO
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
f685795 to
466f481
Compare
Author
|
Any chance to run this on the self hosted runner that we have? |
Removed CODE_SIGNING_ALLOWED=NO from test command.
Author
|
I configure the one I have as self hosted for a run |
|
@copilot please review this PR for any errors. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
UTMUITeststarget wired into the macOS scheme so tests run viaXcode and
xcodebuild test -scheme macOS -destination 'platform=macOS'VMWizardViewTestwith a window close button smoke testTESTING.mdguide covering how to run and extend the test suitetest-utmCI job tobuild.ymlthat runs on every push/PR,parallel to
build-utm, sharing the same sysroot cacheTesting
Tested on: Mac mini M4, macOS 26.3 (Tahoe beta)
xcodebuild test -scheme macOS -destination 'platform=macOS'passes locallyNotes
Code is AI-assisted. All commits carry
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>.I have read the AI Contribution Guidelines and can attest that I have followed each item to the best of my ability.